export const intro = `
type PhNotifyType = 'success'|'danger'|'warning'|'info'
type NotifyPosition = 'right-top'|'right-bottom'|'left-top'|'left-bottom'
type PhNotifyOpt={
    type?:PhNotifyType,
    closable?:boolean,
    position?:NotifyPosition,
    autoClose?:boolean,
    clickable?:boolean,
    icon?:string,  //icon-save
    iconClass?:string,//icon
    iconColor?:string //red
}
interface PhNotifyReturn{
    click(fn:(...a:any[])=>void):PhNotifyReturn,
    close(fn:(...a:any[])=>void):PhNotifyReturn
}
`
export const usage = `
import Notification from 'ph-notification'
//全局注册
app.use(Notification)
//子组件
this.$phNotify（msg:string,opt?:PhNotifyOpt）
//注意 如需想类型提醒需要如下定义typescript
declare module '@vue/runtime-core' {
    export interface ComponentCustomProperties extends Phoeon{
        $phNotify : (msg:string,opt?:PhNotifyOpt)=>PhNotifyReturn,
    }
}

//按需映入 以下为静态方法，无需模版
Notification.
            notify(msg:string,opt?:PhNotifyOpt).click(fn).close(fn)
            success(msg:string,opt?:PhNotifyOpt).click(fn).close(fn)
            warning(msg:string,opt?:PhNotifyOpt).click(fn).close(fn)
            info(msg:string,opt?:PhNotifyOpt).click(fn).close(fn)
            danger(msg:string,opt?:PhNotifyOpt).click(fn).close(fn)
`